package com.mb.ext.base;


import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Author: huangwl
 * @CreateDate: 2019/3/14 14:43
 */
public class Constants {

    public static Integer role_headMaster = 3;
    public static Integer role_lecturer = 2;
    //智慧门店B端小程序appid
    public static String WX_APPID_ZHMD = "wx0fc8ccc7e7b2bc2d";
    //智慧门店B端小程序appsecret
    public static String WX_SECRET_ZHMD = "50b94978c58bc41d8f8ce5d251f6b1e0";
    //智慧影楼小程序appid
    public static String WX_APPID_ZHYL = "wx55c4019ae43d991b";
    //智慧影楼小程序appsecret
    public static String WX_SECRET_ZHYL = "5e48f3ef840a3e553e96e26d386288bb";


    public static String WX_ACCESS_AUTH_NEW = "/wx/auth";
    //hibaby儿童影像
    public static String WX_APPID_ETYX = "wx9914033b372e78bf";
    public static String WX_SECRET_ETYX = "db76f867a0cfdceb290c9b7b19640bf3";
    //hibaby儿童影像公众号对应商户号
    public static String MCH_ID_HIBABY = "1438348102";
    //hibaby儿童影像公众号对应商户号对应秘钥
    public static String WX_KEY_HIBABY = "shdfhibaby2017shdfhibaby2017shdf";

    //版本redis后缀
    public static String versionStr = "VERSION_SHOW";

    //上海颠峰公众号
    public static String WX_APPID_SHDF = "wxb2e9686cf91c72fb";
    public static String WX_SECRET_SHDF = "06a4e58fd1a1699aa523bfa28f391151";//上海颠峰公众号
    //商户号MCH_ID 颠峰对应
    public static String MCH_ID = "1240143102";
    //微信支付商户号对应秘钥 巅峰对应
    public static String WX_KEY = "shanghaidianfengwenhua2018shdfwh";

    //微信授权url
    public static String WX_AUTH = "https://open.weixin.qq.com/connect/oauth2/authorize";
    //微信获取token url
    public static String WX_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token";
    //微信获取用户基本新 url
    public static String WX_USER_BASE_URL = "https://api.weixin.qq.com/cgi-bin/user/info";
    //微信下单 url
    public static String WX_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    //微信退款url
    public static String WX_REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";
    //微信支付异步回调地址
    public static String WX_NOTIFY_URL = "/wx/pay/callback";

    //erp微信支付回调地址
    public static  String WX_FELLBACK_URL="/wisdom/recharge/callback";


    //微信网页授权获取token
    public static String WX_AUTH_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token";
    //微信网页授权获取用户信息
    public static String WX_AUTH_BASE_USER = "https://api.weixin.qq.com/sns/userinfo";

    public static String WX_PUSH_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send";

    //小程序订阅消息推送地址
    public static String XCX_SEND_MES = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send";

    public static String WX_JSAPI = "https://api.weixin.qq.com/cgi-bin/ticket/getticket";

    public static String product = "Dysmsapi";

    public static int TOKEN_EXPIRES = 60 * 60 * 24 * 7;

    //微信模板消息推送--预约成功
    //public static String WX_PUSH_ = "jZfBkctRJciAOKtN2lRP5pJToRZAt1R9VDhMojFVbgg";
    public static String WX_PUSH_YUYUE = "FO5tN0Ts5GJQc8Yy-2RdfgunoT2Og-9vtxuupwcWr6c";
    //微信模板消息推送--积分变动
    public static String WX_PUSH_POINT = "8_1YEQxVZIoOB2Z0q_9b8CjStRLWVUzSnEyCpyUyxNI";
    //微信模板消息推送--评价
    public static String WX_PUSH_COMMENT = "3jieXwEX3mZjfMXWJqOuc1cOH6JDBV3Y7ZLtkee1UNw";

    //授权之后默认重定向前端页面
    public static String WX_REDIRECT_URL = "/index";

    public static Map<Integer, String> map = new HashMap();

    static {
        map.put(0, "未支付");
        map.put(1, "已支付,待付尾款");
        map.put(2, "报名成功");
        map.put(3, "退款成功");
        map.put(4, "退款失败");
    }

    public static Map<Integer, String> goodsOrderPayStatus = new HashMap<>();

    static {
        goodsOrderPayStatus.put(0, "未支付");
        goodsOrderPayStatus.put(1, "已支付");
    }

    public static String RETURN_ERROR = "error";
    public static String RETURN_SUCCESS = "success";
    public static String RETURN_FLAG = "flag";

    //产品域名,开发者无需替换
    public static String domain = "dysmsapi.aliyuncs.com";
    // TODO 此处需要替换成开发者自己的AK(在阿里云访问控制台寻找)
    public static String accessKeyId = "LTAInVG6zkrEMhpe";
    public static String accessKeySecret = "v4WjwoD88jiXHiujK9On2OLpn1YZh2";

    public static String QRCODE_URL = "https://api.weixin.qq.com/wxa/getwxacodeunlimit";

    //短信验证码有效期  分钟
    public static Integer SMS_TTL = 5;

    //官方logo
    public static String logo ="http://zhstore.51hibaby.com/img/hibaby_logo.910050fe.png";

    //根据经纬度获取地址
    public static String BAIDU_GEOCODER_V2 = "http://api.map.baidu.com/geocoder/v2/";

    //小程序登录授权地址
    public static String AUTH_CODE2SESSION = "https://api.weixin.qq.com/sns/jscode2session";
    //店长
    public static Integer role_store = 2;

    public static String ROLE_STORE_SPECIAL="STORE_SPECIAL";

    public static String REDIS_AREA_INFO_ID="area_info_id_";
    public static String REDIS_AREA_INFO="area_info";

    //智慧门店B端订阅消息--今日业绩通知id
    public static String TODAY_PERFORMANCE_MESSAGE_ID = "pZXzeXmkt_eVlLhuS7CbyjWP9Pu6EumgTIYUSSrbxrU";

    //智慧门店B端订阅消息--明日工作提醒id
    public static String TOMORROW_WORK_ID = "rNfCSPxIxP0WXtIULSMtqQcWsH9QJ61AFBUVRAhgTEU";
    public static String aliGateway="https://openapi.alipay.com/gateway.do"; //支付宝网关 应用名为HibabyERP
    public static String alipay_appId = "2021000194672636";
    public static String APP_PRIVATE_KEY="MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCBv1ty409WzwoWtQL7aPP3X/rH8yMuXdSFRgUIlcX4c7gC/twu0gYiQNkdHMlxEJKIxSHYOxZ+O3cBYq+4Swlw9Y9fXlp/YObYP5mnMuzL8tWA6XGuHFAfuiYyxuBUMyPr9Fbx4Q9hIblj3ihklYkCgxsK3QH/b/0sbbcHQ2Sz1MXU2xZBKvvyHs94maiq6WxvFfhquvc81/dT8IhqKmho4A2exzGI9xDRLY7zvSULLQDgqckuuUjJ1U3Io9QR9FZDkO2DR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mvykSNdkFR6fACsj3fasV9Pdymz39eYwxdOJb3apxABIpLSDBa50sCgYEAljUhgGeIY2Mdbdtdc3kpwZ/HACVjauuWFF7HvqjLanD/XywpB5z06n6EnQcokxLtCH7h6wsnnjmulUa74piaRmwr4FrVAqjwcpNqDSMl+Lfo+G/znJgDosziwB67yZturUS6xGUvFMe4pVTvBeffJLeJH+NNPo6QiuhdzkuY0Ak=";
    public static String ALIPAY_PUBLIC_KEY="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtEPRaY+dr8+Vmj/lVIumnDAYySxAmiXlZdCxF0Z9ZRZbRCgIvly/gjf4PJlKAMZcTEhXeHXDRrNT4mK1AX2WV3PFbZVCA94HixGd+1/0sD00SoWJQ8FMFbIPzvnXefGbKDEh6yXF7gCB9M3PxlHg3grD0nzMZxP5qPfutH8NsuhkFlmidlG828vCruU9gd/tGJ5s7F5DJO324LuAvhpkk9nj39HOEayvY3zd0T9NQdxUDYgAgSfZgm7Sc6w2J1irzHYH5BxImAyz9fWrlHsL3LIpMbKwe19WDh1pMNcU/X1g09pO4uraWTYVGXtOjbQGHiW+1Dp8Z5PJe7OVIi805wIDAQAB";
    public static String ali_NotifyUrl="/wisdom/recharge/callbackNotifyUrl";
    public static String loginUrl = "/wisdom/login";
    //钉钉的appid
    public static String ding_appid  ="dingoayftvi0uqjqz6lpjc";
    public static String app_secret ="7MI3_5c4zUy2efd7R61d5-FovkazyD1BHIPvAm3DeWyfEowC0VngFxb6QfNrEPeQ";
    public static String ding_url="https://oapi.dingtalk.com/sns/gettoken?";
    public static String ding_code="https://oapi.dingtalk.com/sns/get_persistent_code?access_token=";
    public static String ding_sns="https://oapi.dingtalk.com/sns/get_sns_token?access_token=";
    public static String ding_getUserInfo="https://oapi.dingtalk.com/sns/getuserinfo?sns_token=";

    // 孙浩个人oss配置
//    public static String endpoint="http://oss-cn-hangzhou.aliyuncs.com"; // Endpoint以杭州为例，其它Region请按实际情况填写。购买后可在阿里云的控制台找到。
    // 阿里云主账号AccessKey拥有所有API的访问权限，风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维，请登录 https://ram.console.aliyun.com 创建RAM账号
//    public static String accessKeyIds="LTAI4FwrV2JC2yrFVqy6ju6f";
//    public static String accessKeySecrets="wCLbmUxqBuDgzoEP9eOVrUV140PKTN";

    //公司服务器oss配置
    public static String bucketName="wisdom-studio";
    public static String endpoint="http://oss-cn-zhangjiakou.aliyuncs.com";
//    public static String bucketName="school-hi";
//    public static String endpoint="http://oss-cn-shanghai.aliyuncs.com"; // Endpoint以杭州为例，其它Region请按实际情况填写。购买后可在阿里云的控制台找到。
//  // 阿里云主账号AccessKey拥有所有API的访问权限，风险很高。强烈建议您创建并使用RAM账号进行API访问或日常运维，请登录 https://ram.console.aliyun.com 创建RAM账号
    public static String accessKeyIds="LTAInVG6zkrEMhpe";
    public static String accessKeySecrets="v4WjwoD88jiXHiujK9On2OLpn1YZh2";


//   public static String jedisPool = "import_img_toc";

    public static String jedisumli = "import_img";

    public static String importOrderImg="order_img_import";
    public static String HELP_PRODUCT_ID="help_product_";

    //银行四要素url
    public static String CHECKBANK_URL="http://lundroid.market.alicloudapi.com/lianzhuo/verifi";
    //银行四要素code
    public static String CHECKBANK_APPCODE="df65920d909c4eadbc3f47ab33ce7599";
    // 3.支付宝公钥
    public static  String tt="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtEPRaY+dr8+Vmj/lVIumnDAYySxAmiXlZdCxF0Z9ZRZbRCgIvly/gjf4PJlKAMZcTEhXeHXDRrNT4mK1AX2WV3PFbZVCA94HixGd+1/0sD00SoWJQ8FMFbIPzvnXefGbKDEh6yXF7gCB9M3PxlHg3grD0nzMZxP5qPfutH8NsuhkFlmidlG828vCruU9gd/tGJ5s7F5DJO324LuAvhpkk9nj39HOEayvY3zd0T9NQdxUDYgAgSfZgm7Sc6w2J1irzHYH5BxImAyz9fWrlHsL3LIpMbKwe19WDh1pMNcU/X1g09pO4uraWTYVGXtOjbQGHiW+1Dp8Z5PJe7OVIi805wIDAQAB";
    // 6.请求网关地址
    public static String URL = "https://openapi.alipay.com/gateway.do";
    // 7.编码
    public static String CHARSET = "UTF-8";
    // 1.商户appid
    public static String APPID = "2019042264308111";
    // 2.私钥 pkcs8格式的
    public static String RSA_PRIVATE_KEYS = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCujfP8bXuHBSLzizpK3yUtyswLcaADlxidPmiqBKBD0j86sjNGzWZeCP9So7V41udr2Jo7hU/5x2ux9AColqP0R9CIv0Ut2XXsNY5Xzx5dq94Uh7HvZtXZMe5sIEulhNQ4b36T7fb7GIwlgE7cWvaBc55QFG3IlnsaW6znZQkxSrvc820JmxsJbip3CP19fpRrjDuEzbFqRXX5JwF8uI5vikH2+iO2O6HuIgzYEO9QGFcmXPHuHWo09z4ECEhoeCtEPzBvt5ilp3z7K7EVSUhn9vOeuYoZ7a1oRsmduvvwKZTxPd/QZ208vo7e8aJGPFYXR7pKeb1/LnABmSajqiJXAgMBAAECggEBAK2Z2m1UCYW4UxF6h6gNE/Hd/l7nS6gmbsF8XyWwYh/xixb6QcsJ3uRo+F2dGY+r1A9LJeFKbcbSUcZzEPCamUcK4VgPOmMmIoSgowerotywYLd0WT/qu4Y+hYwd9n4Qg+v43x+KjJcfy8pEOKopAX6vmWS1XJYhKx+Ey4p6ztCohTjcBgmH0A8NVaEo3cCVM2AtSKeCLZJBnfn71K11NSNw0OqvN/hQUXyie+DCDR+QZ9UdYnWxdoXeZpzwnvY9aqKFL+Vg9Jg5nIAy0teTACCH04JRwSecmbV4OA7GiTF1QBplU0QR84SRMhBQlIrZH0pPcwu/GKDrSS8cmY/neRkCgYEA883/tPfKqORGdSgjo6DkzBWWHM0wRhTfU2jjfKYM0cajcCyXBb77hV1pOuynFmFHmsbkngaPlUjm2weGUyeg4gDov0HCfwRR72iv+/rdJIAnNKMBte+KzQHDJYBXCenOxERG8QqcQhmPSOdE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pad8+yuxFUlIZ/bznrmKGe2taEbJnbr78CmU8T3f0GdtPL6O3vGiRjxWF0e6Snm9fy5wAZkmo6oiVwIDAQAB";
    // 6.请求网关地址
    public static String URLS = "https://openapi.alipay.com/gateway.do";
    // 8.返回格式
    public static String FORMAT = "json";
    // 9.加密类型
    public static String SIGNTYPE = "RSA2";
  //  public static String redis_pass="Native_password";

    //通过code获取access_token
    public static String weChatLogin="https://api.weixin.qq.com/sns/oauth2/access_token?";
    //应用唯一标识，在微信开放平台提交应用审核通过后获得
    public static String weChatAppId="";
    //应用密钥AppSecret，在微信开放平台提交应用审核通过后获得
    public static String weChatSecret="";
    public static String weChatGrantType="authorization_code";

    public static String refreshTokenUrl="https://api.weixin.qq.com/sns/oauth2/refresh_token?";
    public static String grantType="refresh_token";

    public static String userinfoUrl="https://api.weixin.qq.com/sns/userinfo?";

    public static HashMap<String,Object> transactionTypeMap = new HashMap<>();
    static {
        transactionTypeMap.put("1","ERP账户充值");
        transactionTypeMap.put("2","图片存储");
        transactionTypeMap.put("3","短信收费");
        transactionTypeMap.put("4","查看图片");
    }
    public static HashMap<String,Object> typeMap = new HashMap<>();
    static {
        typeMap.put("0","充值");
        typeMap.put("1","支出");
    }

    public static String returnSendSms = "design_sms".trim();

    public static HashMap<String,Object>  smsCodeMap = new HashMap<>();
    static {
        smsCodeMap.put("1","门店开单");
        smsCodeMap.put("2","拍照通知");
        smsCodeMap.put("3","变更通知");
        smsCodeMap.put("4","选片通知");
        smsCodeMap.put("5","看设计版通知");
    }
    public static HashMap<String,Object>  comeTypeMap = new HashMap<>();

    static {
        comeTypeMap.put("1","智慧门店");
        comeTypeMap.put("0","线下录单");
        comeTypeMap.put("2","智慧门店B端");
        comeTypeMap.put("3","嗨妈咪");
        comeTypeMap.put("4","智慧影楼");
    }
   public   static   HashMap<Object,Object> orderStatusMap = new HashMap<>();
    static {
        orderStatusMap.put("2", "预约成功/等待拍摄");
        orderStatusMap.put("-2", "拍摄中");
        orderStatusMap.put("3", "初修中");
        orderStatusMap.put("4", "选片中");
        orderStatusMap.put("5", "精修中");
        orderStatusMap.put("6", "设计中");
        orderStatusMap.put("7", "看设计图");
        orderStatusMap.put("8", "产品印制中");
        orderStatusMap.put("9", "待发片");
        orderStatusMap.put("10","待取件");
        orderStatusMap.put("11", "已完成");
        orderStatusMap.put("13", "返工");
    }
    public static String sqlMouth = "DATE_FORMAT(create_time,'%Y-%m-%d')";
    public static String sqlYear = "DATE_FORMAT(create_time,'%Y-%m')";
}
